﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Linq.Expressions;

namespace Datos
{
    public partial class disper
    {
        protected override void Dispose(bool disposing)
        {
            foreach (var entry in ObjectStateManager.GetObjectStateEntries(EntityState.Added | EntityState.Deleted | EntityState.Modified | EntityState.Unchanged))
            {
                if ((entry.State & EntityState.Detached) != EntityState.Detached && entry.Entity != null)
                    Detach(entry.Entity);
            }
            base.Dispose(disposing);
        }
    }
}
